package cn.highset.modules.base.entity;

import cn.highset.base.HighsetBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Victor
 */
@Data
@Entity
@Table(name = "t_content")
@TableName("t_content")
@SQLDelete(sql = "update t_content set del_flag= 1 where id =?")
@SQLDeleteAll(sql = "update t_content set del_flag= 1 where id =?")
@Where(clause = "del_flag=0")
@ApiModel(value = "富文本内容")
public class Content extends HighsetBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "唯一标识")
    private String type;
    @ApiModelProperty(value = "内容详情")
    private String content;

}
